#include "tasks.h"
#include "App.h"
#include "bsp_led.h"
#include "RGB5050.h"
#include "oled.h"

/* -------------------------------- begin  -------------------------------- */
/**
  * @Name    Task_init     任务初始化
  * @brief
  * @param   None
  * @retval  None
  * @author  gml
  * @Data    2024-11-18
 **/
/* -------------------------------- end -------------------------------- */

//任务列表
void Task_init(void) {
    LED_GPIO_init();
    WS2812_GPIO_Init();
    OLED_Init();
    OLED_Clear();
}


Task_t task_list[] = {
    { TASK_STATE_RUN,  0, 1000, test_led},
    { TASK_STATE_RUN,  0, 100, test_RGB5050},
    { TASK_STATE_RUN,  0, 1000, test_oled},

};

uint8_t task_cnt = sizeof(task_list) / sizeof(Task_t);
